function test1() {
  let x = 0;
  if ((x = 1)) {} 
}
function test2() {
  while (((x = 2))) {} 
}
function test3() {
  for (let i = 0; i < 10; i++) {
    if (((i = 5))) {}
  }
}

function test4() {
  const z = (Math.random() > 0.5) ? ((z = 1)) : 0;
}
